# Contributor: André Klitzing <aklitzing@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=py3-virtnbdbackup
pkgver=2.15
pkgrel=0
pkgdesc="Backup utility for Libvirt / qemu / kvm"
url="https://github.com/abbbi/virtnbdbackup"
arch="noarch"
license="GPL-3.0"
depends="python3 py3-colorlog py3-typing-extensions py3-libvirt py3-lxml py3-tqdm py3-paramiko py3-lz4 libnbd"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
subpackages="$pkgname-pyc"
source="https://github.com/abbbi/virtnbdbackup/releases/download/v$pkgver/virtnbdbackup-$pkgver.tar.gz"
builddir="$srcdir/virtnbdbackup-$pkgver"
options="!check" # tests requires VMs

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
7893ca8389be75439f9dba83687602c7750a767faf9c71a0006e6a104a322b57dda4e824ad7a0d754e427a2c1cb91f8abdc779122f532395e1af146b371737fa  virtnbdbackup-2.15.tar.gz
"
